package db.newversion;

import java.sql.SQLException;
import java.util.HashMap;

import com.sun.org.apache.xpath.internal.functions.WrongNumberArgsException;

public interface IDataBase < D, E > {

	public boolean insert(E toInsert, Object... key) throws SQLException;

	public boolean update(E toUpdate, Object... key) throws SQLException;

	public boolean delete(E toDelete, Object... key) throws SQLException;

	public HashMap < D, E > getAll();

	public E getElement(Object... key) throws WrongNumberArgsException;

	public void createTable() throws SQLException;

	public void dropTable() throws SQLException;
}
